#include <iostream>
#include <fstream>
using namespace std;

int main() {
    ofstream file("../data/data.csv"); 
    if (!file) {
        cout << "Cant't open file!" << endl;
        return 1;
    } 
    string data[] = {"Tom", "Leo", "Tony"}; 
    for (int i = 0; i < sizeof(data)/sizeof(data[0]); i++) {
        file << data[i] << ","; 
    }
    file.close(); 
    return 0;
}

